//存放公共api方法
import { getRequestById, importFile } from '../utils/request'
export const getAreaByType = <T>(type: string | number): Promise<IResponseData<T>> =>
  getRequestById(`/api/sop/sop/sys_area_ezr/getByType/`, type)
export const getAreaById = <T>(id: string | number): Promise<IResponseData<T>> =>
  getRequestById(`/api/sop/sop/sys_area_ezr/getByParentId/`, id)
export const importBlobImg = <T>(data?: any): Promise<IResponsePost<T>> => importFile(`/api/sop/sop/file/upload`, data)
